﻿using System.Collections.Generic;
using System.Linq;

namespace Inscriptionem.Areas.Inscriptionem.Models.Views
{
    public class MemberCollectionViewModel
    {
        public IEnumerable<ORM.Member> Members { get; protected set; }

        public MemberCollectionViewModel()
        {
            Members = new ORM.DB().Members.Where(m => m.IsRegistrationApproved).OrderBy(m => m.ID);
        }

        public int Page { get; set; }
    }
}